import { get, postFrom } from '@/utils/request'

// 获取图形验证码
export const getPicCode = () => {
  return get('/v1/captcha')
}
// 发送短信验证码
export const sendSms = (smsCode) => {
  const params = new URLSearchParams(smsCode)
  return postFrom('/v1/sms/send', params)
}
// 登录
export const login = (loginUser) => {
  const params = new URLSearchParams(loginUser)
  return postFrom('/v1/sms/login', params)
}
